import request from '@/utils/request'

// 获取路由
export const getRouters = () => {
  return request({
    url: '/getRouters',
    method: 'get'
  })
}

// 获取产品统计
export const getByproduct = (params) => {
  return request({
    url: '/system/statistics/byProduct',
    method: 'get',
    params
  })
}

// 获取分类统计
export const getBytype = (params) => {
  return request({
    url: '/system/statistics/byType',
    method: 'get',
    params
  })
}
